package com.wn.ticket.service.impl;

import com.wn.ticket.entity.HotSearch;
import com.wn.ticket.mapper.HotSearchMapper;
import com.wn.ticket.service.HotSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HotSearchServiceImpl implements HotSearchService {
    @Autowired
    private HotSearchMapper hotSearchMapper;

    @Override
    public void add(HotSearch hotSearch) {
        hotSearchMapper.insert(hotSearch);
    }

    @Override
    public void del(int id) {
        hotSearchMapper.delete(id);
    }

    @Override
    public List<HotSearch> getAll() {
        return hotSearchMapper.getAll();
    }
}
